package com.css.ztb.manager;

import com.css.ztb.service.SysConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author shipeilei
 * @date 2020-6-26 16:19:30
 * @desc desc
 */
@Component("config")
public class ConfigManager {
    @Autowired
    private SysConfigService sysConfigService;

    /**
     * 根据键名查询参数配置信息
     * @param configKey
     * @return
     */
    public String getKey(String configKey) {
        return sysConfigService.selectConfigByKey(configKey);
    }
}
